package cn.jd.user.mapper;

import cn.jd.basic.dto.LoginAccountDto;
import cn.jd.user.domain.Logininfo;
import cn.jd.basic.mapper.BasicMapper;
import cn.jd.user.domain.User;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jd
 * @since 2022-10-19
 */
public interface LogininfoMapper extends BasicMapper<Logininfo> {

    Logininfo loadByTypeOrUsername(@Param("username") String username, @Param("type") Integer type);


    Logininfo findByPhone(String username);

    Logininfo findByUserId(Long userId);
}
